#ifndef BONUS_H
#define BONUS_H
#include <SFML/Graphics.hpp>
#include "ResourceManager.h"

class Level;

class Bonus
{
    friend class Level;

    public:
        enum TYPE{SMALLERPANEL, BIGGERPANEL, LIVE, PAUSE, ACID, BALL};

        Bonus(int x, int y, TYPE type);

        void update();
        void draw(sf::RenderWindow* Window) const;
        void onCatch(Level* level);

    protected:
        sf::Sprite bonusSprite;

    private:
        int speed;
        TYPE type;
        bool destroyed;

};

#endif // BONUS_H
